import request from '@/utils/request'

// 查询小程序banna列表
export function listBanna(query) {
  return request({
    url: '/xcx/banna/list',
    method: 'get',
    params: query
  })
}

// 查询小程序banna详细
export function getBanna(bid) {
  return request({
    url: '/xcx/banna/' + bid,
    method: 'get'
  })
}

// 新增小程序banna
export function addBanna(data) {
  return request({
    url: '/xcx/banna',
    method: 'post',
    data: data
  })
}

// 修改小程序banna
export function updateBanna(data) {
  return request({
    url: '/xcx/banna',
    method: 'put',
    data: data
  })
}

// 删除小程序banna
export function delBanna(bid) {
  return request({
    url: '/xcx/banna/' + bid,
    method: 'delete'
  })
}

// 导出小程序banna
export function exportBanna(query) {
  return request({
    url: '/xcx/banna/export',
    method: 'get',
    params: query
  })
}